package com.detech.sbmh.base.satoken.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * 自定义SaToken配置
 *
 */
@Configuration
@ConfigurationProperties(prefix = "sa-token.custom")
public class SaTokenCustomProperties {

    /**
     * 全局过滤白名单
     */
    private List<String> loginCheckIgnore = new ArrayList<>();
    /**
     * 是否开启全局验证码检查
     */
    private Boolean validateCodeEnable = false;
    /**
     * 全局验证码检查拦截路径
     */
    private List<String> validateCodeFilter = new ArrayList<>();

    public SaTokenCustomProperties(){}

    public List<String> getLoginCheckIgnore() {
        return loginCheckIgnore;
    }

    public void setLoginCheckIgnore(List<String> loginCheckIgnore) {
        this.loginCheckIgnore = loginCheckIgnore;
    }

    public Boolean getValidateCodeEnable() {
        return validateCodeEnable;
    }

    public void setValidateCodeEnable(Boolean validateCodeEnable) {
        this.validateCodeEnable = validateCodeEnable;
    }

    public List<String> getValidateCodeFilter() {
        return validateCodeFilter;
    }

    public void setValidateCodeFilter(List<String> validateCodeFilter) {
        this.validateCodeFilter = validateCodeFilter;
    }
}
